package com.liliang.service.impl;

import com.liliang.entity.Supplier;
import com.liliang.mapper.SupplierMapper;
import com.liliang.service.ISupplierService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author liliang
 * @since 2021-11-04
 */
@Service
public class SupplierServiceImpl extends ServiceImpl<SupplierMapper, Supplier> implements ISupplierService {

    @Autowired
    SupplierMapper sm;

    @Override
    public List<Supplier> findSupplierByMATERIAL_NUM(String materialCode) {
        return sm.findSupplierByMATERIAL_NUM(materialCode);
    }

    @Override
    public List<Supplier> findBYstockid(long id) {
        return sm.findBYstockid(id);
    }
}
